package cn.maihe.elg.operation.config;

import com.baomidou.mybatisplus.mapper.ISqlInjector;
import com.baomidou.mybatisplus.mapper.LogicSqlInjector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname MyBatisPlusConfiguration
 * @Description 配置Mybatis Plus 逻辑删除  应项目中删除为1，未删除为0，与mp的配置相同，故.yml文件中无需配置
 * @Date 2019/4/24 14:54
 * @Author by JHWei
 */
@Configuration
public class MyBatisPlusConfiguration {

    @Bean
    public ISqlInjector sqlInjector() {
        return new LogicSqlInjector();
    }


}
